﻿using mozhi.smarterp.AuthorCenter.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;

namespace mozhi.smarterp.AuthorCenter.OpenIddict
{
    public class OpenIddictClientType : FullAuditedAggregateRoot<Guid>
    {
        public string ClientId { private set; get; }

        public ClientType ClientType { private set; get; }

        private OpenIddictClientType() { }

        public OpenIddictClientType(string clientId, ClientType clientType)
        {
            ClientId = clientId;
            ClientType = clientType;
        }

        public void Change(string clientId, ClientType clientType)
        {
            ClientId = clientId;
            ClientType = clientType;
        }
    }
}
